/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const router = {
  hidden: false,
  path: '/reportManagement',
  component: Layout,
  redirect: '/reportManagement/inStockGoodsDetail-list',
  meta: {
    title: '报表',
    icon: 'chart',
    roles: ['BusinessModuleManagement.ReportManagement']
  },
  children: [
    {
      hidden: false,
      path: 'inStockGoodsDetail-list',
      name: 'ReportManagementInStockGoodsDetail',
      component: () => import('@/views/reportManagement/inStockGoodsDetail/list'),
      meta: { title: '库存报表', icon: '', roles: ['ReportManagement.Report.InStockGoodsDetail'] }
    },
    {
      hidden: false,
      path: 'goodsInBill-list',
      name: 'ReportManagementGoodsInBill',
      component: () => import('@/views/reportManagement/goodsInBill/list'),
      meta: { title: '入库报表', icon: '', roles: ['ReportManagement.Report.GoodsInBill'] }
    },
    {
      hidden: false,
      path: 'goodsOutBill-list',
      name: 'ReportManagementGoodsOutBill',
      component: () => import('@/views/reportManagement/goodsOutBill/list'),
      meta: { title: '出库报表', icon: '', roles: ['ReportManagement.Report.GoodsOutBill'] }
    },
    {
      hidden: false,
      path: 'goodsTakeBill-list',
      name: 'ReportManagementGoodsTakeBill',
      component: () => import('@/views/reportManagement/goodsTakeBill/list'),
      meta: { title: '领料报表', icon: '', roles: ['ReportManagement.Report.GoodsTakeBill'] }
    },
    {
      hidden: false,
      path: 'modiBill-list',
      name: 'ReportManagementModiBill',
      component: () => import('@/views/reportManagement/modiBill/list'),
      meta: { title: '调整报表', icon: '', roles: ['ReportManagement.Report.ModiBill'] }
    },
    {
      hidden: false,
      path: 'inventoryBill-list',
      name: 'ReportManagementInventoryBill',
      component: () => import('@/views/reportManagement/inventoryBill/list'),
      meta: { title: '盘点报表', icon: '', roles: ['ReportManagement.Report.InventoryBill'] }
    },
    {
      hidden: false,
      path: 'goodsChangeRecord-list',
      name: 'ReportManagementGoodsChangeRecord',
      component: () => import('@/views/reportManagement/goodsChangeRecord/list'),
      meta: { title: '货物变动明细报表', icon: '', roles: ['ReportManagement.Report.GoodsChangeRecord'] }
    }
  ]
}

export default router
